//
//  Training.h
//  singlebreath
//
//  Created by Eric van Riet Paap on 21-09-08.
//  Copyright 2008 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import <CoreLocation/CoreLocation.h>
#import <sqlite3.h>

#import "Hold.h"


@interface Training : NSObject {
	NSString		*name;
	NSMutableArray	*holds;
}

@property (nonatomic, retain) NSString			*name;
@property (nonatomic, retain) NSMutableArray	*holds;

+(id)trainingWithName:(NSString*)_name holds:(NSMutableArray*)_holds;
-(id)initWithName:(NSString*)_name holds:(NSMutableArray*)_holds;
-(int)numberOfHolds;
-(float)duration;
-(Hold*)holdAtTime:(float)atTime;
-(float)phaseRangeAtTime:(float)atTime phase_end:(float*)phase_end;
-(NSString*)asString;
-(NSString*)asHTML;

@end

	
